package com.atguigu.edu2021.mock.bean;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * <p>
 * 试卷 试卷
 * </p>
 *
 * @author zhangchen
 * @since 2021-09-05
 */
@Data
public class TestPaper implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 编号
     */
      @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 试卷名称
     */
    private String paperTitle;

    /**
     * 课程id
     */
    private Long courseId;

    /**
     * 创建时间
     */
    private Date createTime;

    /**
     * 更新时间
     */
    private Date updateTime;

    /**
     * 发布者id
     */
    private Long publisherId;

    /**
     * 是否删除
     */
    private String deleted;


    @TableField(exist = false)
    private List<TestQuestionInfo> testQuestionInfoList;



    @Override
    public String toString() {
        return "TestPaper{" +
        "id=" + id +
        ", paperTitle=" + paperTitle +
        ", courseId=" + courseId +
        ", createTime=" + createTime +
        ", updateTime=" + updateTime +
        ", publisherId=" + publisherId +
        ", deleted=" + deleted +
        "}";
    }
}
